<template>
	<view class="hotsing">
		<view class="list" v-for="(item,index) in info" :key="index" @click="jump(item.id)">
			<view class="img">
				<image :src="item.album.picUrl"></image>
			</view>
			<view class="neirong">
				<p>{{item.name}}</p>
				<text>{{item.artists[0].name}} - {{item.album.name}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['info'],
		data() {
			return {
				
			}
		},
		methods:{
			jump(id){
				uni.navigateTo({
					url:'../../pages/BoFangQi/BoFangQi?id=' + id
				})
			}
		}
	}
</script>

<style lang="scss">
	.hotsing{
		width: 100%;
		margin-top: 40rpx;
		.list{
			width: 100%;
			display: flex;
			//align-items: center;
			justify-content: space-around;
			height: 100rpx;
			//background: blue;
			margin-bottom: 20rpx;
			.img{
				width: 100rpx;
				height: 100%;
				image{
					width: 100%;
					height: 100%;
				}
			}
			.neirong{
				width: 70%;
				height: 100%;
				//background-color: yellow;
				margin-right: 60rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				word-break: normal;
				p{
					font-size: 34rpx; 
				}
				text{
					font-size: 24rpx;
					color: #888; 
				}
			}
		}
	}
</style>
